﻿//这个类 适配器
//author 夏天的树人
//vesion 1.0
//绘制扇形

package org.summerTree.graphics
{

	public class Adapter extends Base
	{

		public function Adapter()
		{

		}
		override public function clone():*
		{
			return new Adapter();
		}
		public function add(obj:Base):void
		{
			this.addChild(obj);
		}
		public function remove(obj:Base):void
		{
			if (this.contains(obj))
			{
				this.removeChild(obj);
				//obj=null;
				trace("ww");
			}
		}
		
		//重绘
		public function redraw():void
		{
			
		}
		
		
		public function clearAll():void
		{
			while (this.numChildren>0)
			{
				this.removeChildAt(0);
			}
		}
				
	}
}